#ifndef MYSERVERGATEWAY_H
#define MYSERVERGATEWAY_H

#include "myserver.h"

class MyServerGateway : public MyServer
{
    Q_OBJECT

public:
    /**
     * @brief 获取单例对象
     * @return MyServerGateway* 单例对象
     */
    static MyServerGateway *getObject();
    /**
     * @brief 数组帧处理
     * @param data
     */
    virtual void handleFrame(const QByteArray &data, int src);
    /**
     * @brief 控制高亮LED
     * @param brightness 亮度 0~255
     */
    void setHighlightLED(int brightness);

protected:
    static MyServerGateway *obj;
};

#endif // MYSERVERGATEWAY_H
